package org.sny7.openOfflineList.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import org.sny7.openOfflineList.gui.LanguageMenuItem;
import org.sny7.openOfflineList.util.ConfigureManager;
import org.sny7.openOfflineList.util.LanguageChanger;

public class LanguageMenuItemClick implements ActionListener {

	public void actionPerformed(ActionEvent e) {
		LanguageMenuItem languageMenuItem = (LanguageMenuItem) e.getSource();
		LanguageChanger.change(languageMenuItem.getFileName());
		
		ConfigureManager.setConfigure("language", languageMenuItem.getText());
	}

}
